package golab

import "github.com/gorilla/websocket"

var Upgrader = websocket.Upgrader{
	ReadBufferSize:  1024,
	WriteBufferSize: 1024,
}

var ClitMap map[int]Node = make(map[int]Node)

type Node struct {
	Conn *websocket.Conn
	Data chan []byte
}
type Msg struct {
	UserId  int    `json:"user_id"`
	DistId  int    `json:"dist_id"`
	Content string `json:"content"`
	Cmd     int    `json:"cmd"`
}
